第10 步:现在我们已经有了当玩家错过目标时的代码,让我们编写当有目标时的代码。
- 在 LOGIC 中,转到并拖入Else 。确保你的else看起来像这样: ···· else:
- 在图形中,转到并拖入Glide To INSIDE 你的 else 块。
- 将前面的名称更改为ball并将括号中的数字更改为 ( 175 , random_height ) 。
To navigate the page using the TAB key, first press ESC to exit the code editor.